package com.wanxin.wb.module.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.wanxin.wb.module.web.vo.HelloVO;

@Controller
@RequestMapping("cn")
public class HelloController {
	
	
	
	@RequestMapping(value = "/hello", method = {RequestMethod.GET})
    public ModelAndView getUser() {
        HelloVO he = new HelloVO();
        he.setId("1");
        he.setWord("haaaa");
        ModelAndView view = new ModelAndView("hello");
        view.addObject("hello", he);
        return view;
    }
	
	
	
	
	//   cn/country/language/findEmployee
	@RequestMapping(value="/{country}/{language}/findEmployee")  
	public String findEmployee(  
	  @PathVariable String country,  
	  @PathVariable String language){  
	  
	    System.out.println("Find employee with ID: " + country +   
	      " from department: " + language);  
	    return "someResult";  
	  
	}

}
